package anthology.daily_question._24_12;
//https://leetcode.cn/problems/check-if-two-chessboard-squares-have-the-same-color/description/?envType=daily-question&envId=2024-12-03
public class _3274检查棋盘方格颜色是否相同 {
    class Solution {
        public boolean checkTwoChessboards(String coordinate1, String coordinate2) {
            int a = (coordinate1.charAt(0)+coordinate1.charAt(1))% 2;
            int b = (coordinate2.charAt(0)+coordinate2.charAt(1))% 2;
            return a == b;
        }
    }
}
